package com.atguigu.gmall.order.service;

import com.atguigu.gmall.model.enums.ProcessStatus;
import com.atguigu.gmall.model.order.OrderDetail;
import com.atguigu.gmall.model.order.OrderInfo;

import java.util.List;
import java.util.Map;

/**
 * @author 李旭
 * @date 2021/11/30 15:07
 * @Description:
 */
public interface OrderInfoService {
    boolean checkStock(OrderDetail orderDetail);

    Long insertOrder(OrderInfo orderInfo);

    void updateOrderInfoStatus(String orderId);

    OrderInfo getOrderInfo(Long orderId);

    void updateOrderStatus(String orderId, ProcessStatus processStatus);

    Map initWareData(String orderId);

    List<OrderInfo> orderSplit(Long orderId, String wareSkuMap);

    Map initWareData(OrderInfo subOrderInfo);
}
